import Login from "../pages/Login.js";
import Index from "../pages/admin/dashboard/Index";
import CredentialList from "../pages/admin/credential/List";
import CredentialEdit from "../pages/admin/credential/Edit";
import UserList from "../pages/admin/users/List";
import UserEdit from "../pages/admin/users/Edit";
import RoleList from "../pages/admin/role/List";
import RoleEdit from "../pages/admin/role/Edit";
import Test from "../pages/admin/notices/Index";
import PageNotFound from "../pages/PageNotFound";


export const mainRoutes = [
  {
    path: "/",
    component: Login
  },
  {
    path: "/404",
    component: PageNotFound
  }

];

export const adminRoutes = [
  {
    path: "/admin/dashboard",
    component: Index,
    isShow: true,
    title: "主页",
    icon: "area-chart"
  },
  {
    path: "/admin/credential",
    component: CredentialList,
    isShow: true,
    exact: true,
    title: "凭证管理",
    icon: "ant-cloud"
  },
  {
    path: "/admin/credential/edit/:id?",
    component: CredentialEdit,
    isShow: false
  },
  {
    path: "/admin/users",
    component: UserList,
    isShow: true,
    exact: true,
    title: "用户管理",
    icon: "aliwangwang"
  },
  {
    path: "/admin/users/edit/:id?",
    component: UserEdit,
    isShow: false
  },
  {
    path: "/admin/role",
    component: RoleList,
    isShow: true,
    exact: true,
    title: "角色管理",
    icon: "bars"
  },
  {
    path: "/admin/role/edit/:id?",
    component: RoleEdit,
    isShow: false
  }
  // ,{
  //   path: "/admin/test",
  //   component: Test,
  //   isShow: true,
  //   exact: true,
  //   title: "测试页面",
  //   icon: "bars"
  // },

];
